home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY-2.2 / SCENES / level2 / TETRA < prev    next >
Text File  |  1993-09-28  |  2KB  |  96 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By ???
  4.  
  5. #include "shapes.inc"
  6. #include "shapes2.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. camera {
  11.    location <0.0, 30.0, -200.0>
  12.    direction <0.0, -0.15, 1.0>
  13.    up <0.0, 1.0, 0.0>
  14.    right <4/3, 0.0, 0.0>
  15. }
  16.  
  17. #declare Tetra = object {
  18.    Tetrahedron
  19.  
  20.    pigment { Gold }
  21.    finish {
  22.       crand 0.01
  23.       ambient 0.1
  24.       diffuse 0.7
  25.       reflection 0.4
  26.       brilliance 6.0
  27.    }
  28. }
  29.  
  30. object { Tetra
  31.    scale 10
  32.    rotate -45*y
  33.    translate <-10.0, 0.0, -105.0>
  34. }
  35.  
  36. object { Tetra
  37.    scale 10
  38.    rotate -40*y
  39.    translate <75.0, 0.0, 50.0>
  40. }
  41.  
  42. object { Tetra
  43.    scale 10
  44.    rotate 30*y
  45.    translate <-60.0, 0.0, -50.0>
  46. }
  47.  
  48. object { Tetra
  49.    scale 10.0
  50.    rotate -75*y
  51.    translate <60.0, 0.0, -65.0>
  52. }
  53.  
  54. sphere { <-50.0, 50.0, 100.0>, 100.0
  55.    pigment { White }
  56.    finish {
  57.       crand 0.01
  58.       ambient 0.05
  59.       diffuse 0.1
  60.       reflection 0.97
  61.       brilliance 4.0
  62.    }
  63. }
  64.  
  65. plane { y, -50.0
  66.    pigment {
  67.       checker colour Blue colour Gray
  68.       quick_color Blue
  69.       scale 40.0
  70.    }
  71.    finish {
  72.       crand 0.01
  73.       ambient 0.3
  74.       diffuse 0.7
  75.       reflection 0.1
  76.       brilliance 3.0
  77.    }
  78. }
  79.  
  80. plane { y, 500.0
  81.    pigment {
  82.       Bright_Blue_Sky
  83.       quick_colour red 0.5 green 0.5 blue 0.8
  84.       scale <2000.0, 500.0, 1000.0>
  85.    }
  86.    finish {
  87.       crand 0.05
  88.       ambient 0.7
  89.       diffuse 0.0
  90.    }
  91. }
  92.  
  93. light_source { <60.0, 60.0, -200.0> colour White }
  94.  
  95. light_source { <-60.0, 60.0, -200.0> colour White }
  96.